Don't define ARCH_APICTIMER_STOPS_ON_C3.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 20 Feb 2006 11:20:42 +0000 (11:20 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 20 Feb 2006 11:20:42 +0000 (11:20 +0000)
Protect the calls to the switch_APIC_timer_to_ipi and
switch_ipi_to_APIC_timer functions since we don't implement
smp_send_timer_broadcast_ipi().

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
linux-2.6-xen-sparse/arch/i386/kernel/apic-xen.c
linux-2.6-xen-sparse/arch/x86_64/kernel/apic-xen.c
linux-2.6-xen-sparse/include/asm-i386/apic.h
linux-2.6-xen-sparse/include/asm-x86_64/apic.h

index 6e0b15e4f750ab622277d40395505f2f146a6205..07a0994307c7cb02f6f20cfc1d45f483573bc301 100644 (file)
@@ -85,13 +85,6 @@ int get_physical_broadcast(void)
         return 0xff;
 }
 
-#ifdef CONFIG_XEN
-void switch_APIC_timer_to_ipi(void *cpumask) { }
-EXPORT_SYMBOL(switch_APIC_timer_to_ipi);
-void switch_ipi_to_APIC_timer(void *cpumask) { }
-EXPORT_SYMBOL(switch_ipi_to_APIC_timer);
-#endif
-
 #ifndef CONFIG_XEN
 #ifndef CONFIG_SMP
 static void up_apic_timer_interrupt_call(struct pt_regs *regs)
index a1c434cda5bab54b0748f0975dd22dae941fc091..3152b914f9e9e1512cd7fbb9baa1644984905067 100644 (file)
@@ -58,13 +58,6 @@ void ack_bad_irq(unsigned int irq)
                ack_APIC_irq();
 }
 
-#ifdef CONFIG_XEN
-void switch_APIC_timer_to_ipi(void *cpumask) { }
-EXPORT_SYMBOL(switch_APIC_timer_to_ipi);
-void switch_ipi_to_APIC_timer(void *cpumask) { }
-EXPORT_SYMBOL(switch_ipi_to_APIC_timer);
-#endif
-
 int setup_profiling_timer(unsigned int multiplier)
 {
        return -EINVAL;
index d30b8571573fd7dcb87d225f287b746c85cbdd8f..ac93e81487ab43ffad164eb98428e65cb956015d 100644 (file)
@@ -132,10 +132,12 @@ extern unsigned int nmi_watchdog;
 
 extern int disable_timer_pin_1;
 
+#ifndef CONFIG_XEN
 void smp_send_timer_broadcast_ipi(struct pt_regs *regs);
 void switch_APIC_timer_to_ipi(void *cpumask);
 void switch_ipi_to_APIC_timer(void *cpumask);
 #define ARCH_APICTIMER_STOPS_ON_C3     1
+#endif
 
 #else /* !CONFIG_X86_LOCAL_APIC */
 static inline void lapic_shutdown(void) { }
index bdbd8935612a7d6eaa9f96e63e796abc72cfb66b..79db75f178917beabca09325161e7a0b372735e6 100644 (file)
@@ -105,11 +105,13 @@ extern int disable_timer_pin_1;
 
 extern void setup_threshold_lvt(unsigned long lvt_off);
 
+#ifndef CONFIG_XEN
 void smp_send_timer_broadcast_ipi(void);
 void switch_APIC_timer_to_ipi(void *cpumask);
 void switch_ipi_to_APIC_timer(void *cpumask);
 
 #define ARCH_APICTIMER_STOPS_ON_C3     1
+#endif
 
 #endif /* CONFIG_X86_LOCAL_APIC */